#include "Student.h"
#include <iostream>
#include <iomanip>

Student::Student() {}

Student::Student(const std::string& studentId, const std::string& name)
    : studentId(studentId), name(name) {}

// Getters
std::string Student::getStudentId() const { return studentId; }
std::string Student::getName() const { return name; }

// Setters
void Student::setStudentId(const std::string& studentId) { this->studentId = studentId; }
void Student::setName(const std::string& name) { this->name = name; }

void Student::display() const {
    std::cout << "学生信息:" << std::endl;
    std::cout << "  学号: " << studentId << std::endl;
    std::cout << "  姓名: " << name << std::endl;
}